package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 购物车对象 cart
 *
 * @author ruoyi
 * @date 2022-05-03
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Cart extends BaseEntity{
    private static final long serialVersionUID = 1L;

    /** 购物项主键id */
    private Long id;

    /** 用户主键id */
    @Excel(name = "用户主键id")
    private Long userId;

    /** 关联商品id */
    @Excel(name = "关联商品id")
    private Long productId;

    /** 数量 */
    @Excel(name = "数量")
    private Integer num;

    private String name;
    private String cover;
    private Double price;
    private Double sum;

}
